<template>
  <div>
    {{ list }}
  </div>
</template>

<script setup>
import { reactive, ref, createApp, onMounted } from "vue";
import { useStore } from "../../store";
import { getDictList } from "../../utils/utils.js";
let store = useStore();
let list = ref({});

onMounted(async () => {
  await getDictLists();
  store.$patch((state) => {
    state.userInfo = { name: "chao" };
  });
});

let getDictLists = async () => {
  let lists = await getDictList(["etc_channel"]);
  lists.forEach((item) => {
    list.value[Object.keys(item)] = item[Object.keys(item)];
  });
};
</script>

<style></style>
